package cn.codergege.demo.logback;


import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.core.util.StatusPrinter;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.LoggerFactory;


@Slf4j
public class LogbackDemo {

    public static void main(String[] args) {
        log.info("Logback info.");
        log.debug("Logback debug");
        log.error("Logback error");
        // print internal state

        // TODO: 2019-05-30 logback.xml 不起作用? 
        LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
        StatusPrinter.print(lc);
    }
}
